import React from 'react';
import ReactDOM from 'react-dom';
import {
    Buttonm,
    Navbar,
    Nav,
    Dropdown,
    Icon,
    Sidebar,
    Sidenav,
    Header,
    Content,
    Container
} from 'rsuite';
import {react} from 'react.eval';
import User from '../user/User';
import Bank from '../user/Bank';
import { BrowserRouter as Router, Route, Link } from "react-router-dom";


class Right extends React.Component {

    constructor(props) {
        super(props);
        react.init(this);
    }


    // handleContent(name){
    //     switch(name){
    //         case "User":
    //             return ReactDOM.render(<User/>,document.getElementById('content'));
    //             break;
    //         default:
    //             return null;
    //    } 
    // }

    render() {

        return (
            <Container id="content">
                <Route exact path="/user" component={User} />
                <Route exact path="/bank" component={Bank} />
            </Container>
        );

    }

}


export default Right;